﻿using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace LZ.DCode.DataDictionarys
{
    [Table("DataGroups")]
    public class DataGroup : Entity
    {
        /// <summary>
        /// [序号].[大类名]
        /// 如：01.系统管理
        /// </summary>
        [StringLength(50)]
        public virtual string Type { get; set; }

        [StringLength(50)]
        public virtual string Code { get; set; }

        [StringLength(50)]
        public virtual string Name { get; set; }

        public virtual bool IsShow { get; set; }

        public virtual DataGroupModeEnum Mode { get; set; }

        public virtual int Seq { get; set; }

        [Required]
        public virtual DateTime CreationTime { get; set; }
    }

    /// <summary>
    /// 数据字典组模式
    /// </summary>
    public enum DataGroupModeEnum
    {
        Group = 1, //分组
        Tree = 2, //树
        Value = 3 //值
    }
}

